package com.hengtian.roastwall.service;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hengtian.roastwall.entity.User;
import com.hengtian.roastwall.entity.dto.RegisterDto;
import com.hengtian.roastwall.utils.ResponseResult;

import java.util.List;

public interface UserService  {
    User getUserInfo(String userName);

    ResponseResult login(User user);

    ResponseResult logout();

    List<String> getAuthorities(User user);

    List<User> getAllUsers();

    void addUser(User user);

    User register(RegisterDto dto);

    int updateAvatarById(User user);
}
